import axios from '../../request'
export default {
    // 根据id删除题目
    del(data) {
        return axios.delete(`/question/qdetails/delete/${data}`);
    },
    //题目类型数据
    tseleLise() {
        return axios.get(`/question/type/list`);
    },
    //难度类型数据
    nseleLise() {
        return axios.get(`/question/nd/list`);
    },
    //添加
    xiangqingDTO(data) {
        console.log(data);
        return axios.post(`/question/qdetails/add`,data);
    },
    update(data){
        return axios.put(`/question/qdetails/edit`,data);
    }
}